<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IRIS - I Read It Somewhere</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/bettertip/jquery.bettertip.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/date_input/date_input.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery-ui/cupertino/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/default/screen.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery-fullsize/fullsize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery-facebox/facebox.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.labelover.js"></script>
<script type="text/javascript" src="js/jquery.dimensions.js"></script>
<script type="text/javascript" src="js/jquery.date_input.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="js/jquery.impromptu.js"></script>
<script type="text/javascript" src="js/jquery.bettertip.js"></script>
<script type="text/javascript" src="js/jquery.pstrength.js"></script>
<script type="text/javascript" src="js/jquery.metadata.js"></script>
<script type="text/javascript" src="js/jquery.flydom.js"></script>
<script type="text/javascript" src="js/jquery.selectboxes.js"></script>
<script type="text/javascript" src="js/jquery.fullsize.js"></script>
<script type="text/javascript" src="js/jquery.facebox.js"></script>
<script type="text/javascript" src="js/metadata.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript">
{if count($note) > 0}
{literal}
setTimeout(function(){ $('#note').fadeOut('slow'); }, 3000);
{/literal}
{/if}
{literal}
$(function(){ 
    $("tr[link]").bind("click", function(){ 
        var link = $(this).attr("link"); 
        window.location.href = link; 
    }); 
    $("img").fullsize();
}); 
{/literal}
</script>
</head>

<body>
<div id="header">
{if $user_loggedIn} 
    <span id="welcome">Hello <em>{$user_username}</em> (<a href="index.php?p=logout">Log Out</a>)</span>
{else}
    <span id="welcome">Not Logged In (<a href="index.php?p=login">Log In</a>)</span>
{/if}
{include file="searchbox.tpl"}
</div>

<div id="menu">{include file="menu.tpl"}</div>
<div id="content">
<h1>{$page_name}</h1>
{if count($error) > 0}
<div class="message error" id="error">
{section name=error loop=$error}
	{$error[error]}<br />
{/section}
</div>
{/if}
{if count($note)}
<div class="message note" id="note">
{section name=note loop=$note}
	{$note[note]}<br />
{/section}
</div>
{/if}
{include file="$template.tpl"}
<!-- </div> -->

<div id="footer">
IRIS: <em>I Read It Somewhere!</em><br /><strong>Version: {$IRIS_VERSION}</strong><br />
Copyright &copy;{$smarty.now|date_format:'%Y'} Brandon Aubie<br />
McMaster University, Hamilton, Ontario, Canada  
</div>

{if $deletedOverlay}
	<div class="overlay deleted_overlay"></div>
{/if}
{if $errorOverlay}
	<div class="overlay error_overlay
	"></div>
{/if}

{literal}
<script type="text/javascript"> 
$( function () {

    $("a.adminreq").click( function () {
    
       $.prompt('This feature requires administrator access.  Please contact one of the following administrators to request this action.<br /><br />{/literal}{$administrators}{literal}',
       {
        buttons:{'OK':'OK'},
        prefix:'colsJqi',
        show:'slideDown',
        callback: processDuplicatePrompt
        }
       );
       });


});
</script>
{/literal}

</body>
</html>
